/**
 *  域名全局变量
 */
export var YN_STREAM,GW,YNGP,PRODUCT_URL,TLBY_PC_WB,BASE_URL,CLIENT,APP_PATH,webSocketPath,XG_PATH,TLBY_PC_Client;
var href = window.document.domain;
if (href.includes("test")) {   //测试地址
    BASE_URL    = 'http://client-test.zx093.com';
    TLBY_PC_WB  = 'http://client-test.zx093.com';
    CLIENT      = 'http://client-test.zx093.com/yncjClient';
    // CLIENT      = 'http://client.zx093.com';
    YNGP        = 'http://app-test.zx093.cn';
    YN_STREAM   = 'http://gw-test.zx093.cn';
    GW          = 'http://gw-test.zx093.com';
    PRODUCT_URL = "http://product-test.zx093.com";
    webSocketPath = "ws://client-test.zx093.com/yncjClient/websocket";
    XG_PATH      = "http://stocksearch.zx093.com";
    TLBY_PC_Client  = 'http://app-test.zx093.cn/yncjClient';


} else if (href.includes("localhost") || href.includes("192.168")) {  //开发地址
    
    BASE_URL    = '';
    //BASE_URL    = 'http://client.zx093.com';
    TLBY_PC_WB  = 'http://client-test.zx093.com';
    //CLIENT      = 'http://client.zx093.com';
    CLIENT      = 'http://client-test.zx093.com/yncjClient';
    YNGP        = 'http://app-test.zx093.cn';
    YN_STREAM   = 'http://gw-test.zx093.cn';
    GW          = 'http://gw-test.zx093.com';
    PRODUCT_URL = "http://product-test.zx093.com";
    webSocketPath = "ws://client.zx093.com:8088/websocket";
    XG_PATH     = "http://stocksearch.zx093.com";
    TLBY_PC_Client  = 'http://app-test.zx093.cn/yncjClient';
} else {  //正式地址
    BASE_URL    = `http://${href}`;
    TLBY_PC_WB  = 'http://client.zx093.com';
    CLIENT      = 'http://client.zx093.com';
    YNGP        = 'http://app.zx093.cn';
    YN_STREAM   = 'http://gw.zx093.cn';
    GW          = 'http://gw.zx093.com';
    PRODUCT_URL = "http://product.zx093.com";
    webSocketPath = "ws://client.zx093.com/websocket";
    XG_PATH       = "http://stocksearch.zx093.com";   
   TLBY_PC_Client  = 'http://app.zx093.cn/';
}
 